<body class="gray-bg">
<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('WorkflowNode/add')}">
        <input name="workflow_id" type="hidden" value="{$workflow_id}">
        <div class="form-group">
            <label class="col-sm-2 control-label">节点名称</label>
            <div class="col-sm-10">
                <input name="name" class="form-control" type="text" placeholder="请输入流程名称" required/>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">分配类型</label>
            <div class="col-sm-10">
                <select name="destribute_type" class="form-control chosen-select destributetype">
                    <option value="">请选择节点分配类型</option>
                    {volist name='$destribute_type_list' id='vo'}
                    <option value="{$key}" data-link="{$vo['link']}">{$vo['name']}</option>
                    {/volist}
                </select>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group destribute_user_box">
            <label class="col-sm-2 control-label">审批人员</label>
            <div class="col-sm-10">
                <div class="input-group">
                    <input type="hidden" name="destribute_user_id">
                    <input type="text" name="destribute_user_name" id="assist_user_name" class="form-control" placeholder="选择指定人员" readonly>
                    <span class="input-group-btn">
                        <button type="button"  class="btn btn-info ajax-open" data-calback="javascript:void(0);"  data-url="{:url('admin/SysUser/lookup',array('input_ids'=>'destribute_user_id','input_text'=>'destribute_user_name'))}">选择人员 </button>
                    </span>
                </div>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">节点排序</label>
            <div class="col-sm-10">
                <input name="sort" class="form-control" type="text" placeholder="请输入序号" value="1" required/>
                <span class="help-block m-b-none">设置节点的步骤，从第1步开始</span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">节点备注</label>
            <div class="col-sm-10">
                <textarea class="form-control" name="remark" placeholder="请输入流程备注"></textarea>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                <p class="form-control-static">
                    1、当选择“负责人主管”审批时。系统仅会通知负责人主管，但负责人所有上级（主管、主管的主管）均可审批。<br>
                    2、当选择多个“指定用户”审批时。如果指定用户没有权限查看对应的订单，系统不会通知其审批。<br>
                    3、当选择“指定用户（任意一人）”表示指定用户中任意一人审批即可。当选择“指定用户（多人会签）”表示指定用户中所有人都要审批。<br>
                    4、如果仍有待审批的订单，允许添加“指定用户”，但不允许修改其他审批规则。<br>
                    5、多人会签的下一级不能是“上级审批人主管”。<br>
                </p>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                {include file="admin@layout/save_btn"}
            </div>
        </div>
    </form>
</div>
{include file="workflow_node/function"}
